﻿using System.Collections.Generic;
using System.Reflection;
using UnityEngine;

namespace GameLauncher.Runtime
{
    public abstract class AssemblyLoaderState : HotFixState
    {
        protected Assembly MainLogicAssembly { get; set; }
        protected List<Assembly> HotfixAssemblies { get; } = new();

        protected void ReportProgress(string message)
        {
            HotFixUI.RefreshDescLabel(message);
        }

        protected virtual bool ValidateMainAssembly()
        {
            return MainLogicAssembly != null;
        }
    }
}